package com.example.docmanagement.exception;

/**
 * 资源重复异常
 */
public class DuplicateResourceException extends RuntimeException {

    public DuplicateResourceException(String message) {
        super(message);
    }

    public DuplicateResourceException(String fieldName, Object fieldValue) {
        super(String.format("%s 已存在：%s", fieldName, fieldValue));
    }
}
